package com.foreveross.proxyip.util;

import java.util.Random;

import com.gargoylesoftware.htmlunit.BrowserVersion;

/**
 * 随机浏览器版本
 * @author Administrator
 *
 */
public class RandomBrowserVersion {

	private static Random R=new Random();
	private static BrowserVersion[] BVS=new BrowserVersion[]{
					BrowserVersion.FIREFOX_3_6,
					BrowserVersion.FIREFOX_10,
					BrowserVersion.CHROME_16,
					BrowserVersion.FIREFOX_17,
					BrowserVersion.INTERNET_EXPLORER_6, 
					BrowserVersion.INTERNET_EXPLORER_7, 
					BrowserVersion.INTERNET_EXPLORER_8,
					BrowserVersion.INTERNET_EXPLORER_9
					
	};
	
	
	public static  synchronized BrowserVersion getBV(){
		
		return BVS[R.nextInt(BVS.length)];
	}
	
	
	public static void main(String[] args) {
		for(int i=0;i<10;i++){
			System.out.println(getBV());
		}
	}
	
}
